class NewsController < ApplicationController
  def index
    render json:{
      "data": {
        "total": 0,
        "pages": 0,
        "size": 0,
        "page": 0,
        "data": [
          {
            id: "1",
            user_id: "111",
            title: "日本外相访华，中日双方到底达成了哪些协议",
            content: "12月23日，美国《新闻周刊》报道称，在北约列出的“对于盟军国防工业必不可少的”12种关键材料中，中国“几乎完全掌握了”其中7种，并声称“这对北约的军事能力构成了重大风险”。",
            icons: [
              "https://d.ifengimg.com/w360_h203_q90_webp/x0.ifengimg.com/ucms/2024_52/BF57FD8E24D54E58277B1351712CA6B9B0CBE860_size68_w640_h360.jpg",
              "https://d.ifengimg.com/w360_h203_q90_webp/x0.ifengimg.com/ucms/2024_52/BF57FD8E24D54E58277B1351712CA6B9B0CBE860_size68_w640_h360.jpg",
              "https://d.ifengimg.com/w360_h203_q90_webp/x0.ifengimg.com/ucms/2024_52/BF57FD8E24D54E58277B1351712CA6B9B0CBE860_size68_w640_h360.jpg"
            ],
            province: "hubei",
            duration: "23100",
            commentsCount: 10,
            created_at: "2023-04-05T04:16:01.000Z"
          },
          {
            id: "2",
            user_id: "222",
            content: "据北约介绍，铝是生产军用飞机和导弹的关键材料；石墨由于其高强度和热稳定性，对于主战坦克和护卫舰的生产至关重要；在潜艇中，石墨用于建造船体和其他结构部件，可显著降低声学特征并增强隐身能力；钴对于生产喷气发动机、导弹和潜艇中使用的超级合金来说至关重要……",
            icons: [ "https://d.ifengimg.com/w360_h203_q90_webp/x0.ifengimg.com/ucms/2024_52/43E20DA5345BD44801EE168E05A2CF685E233962_size134_w975_h549.jpg"],
            user: {
              nickname: "suchiva"
            },
            province: "hubei",
            duration: "43100",
            created_at: "2023-04-05T04:16:01.000Z"
          },
          {
            id: "3",
            user_id: "333",
            title: "韩国最大在野党：将立刻弹劾代总统韩德洙",
            content: "报告写道：“这些材料的可用性和安全供应对于保持北约的技术优势和作战准备至关重要。供应中断可能会影响基本国防设备的生产。确定这些关键材料是北约朝着建立更强大、更安全的供应链迈出的第一步，对盟国的国防和安全至关重要。”",
            icons: [ "https://d.ifengimg.com/w360_h203_q90_webp/x0.ifengimg.com/ucms/2024_52/729CB2DAF9843304847D0E5DACABFAB560CFBE53_size81_w646_h364.jpg"],
            uri: "https://d.ifengimg.com/w360_h203_q90_webp/x0.ifengimg.com/ucms/2024_52/729CB2DAF9843304847D0E5DACABFAB560CFBE53_size81_w646_h364.jpg",
            user: {
              nickname: "suchiva"
            },
            province: "hubei",
            duration: "33100",
            commentsCount: 3,
            created_at: "2024-12-26T15:32:01.000Z"
          },
          {
            id: "4",
            user_id: "444",
            title: "特朗普的“加拿大州长”人选，是他？",
            content: "美国当选总统特朗普近来多次向加拿大发出关税威胁，与加拿大总理特鲁多关系闹僵。特朗普还宣布支持加拿大职业冰球运动员韦恩·格雷茨基（Wayne Gretzky）担任加拿大总理。",
            icons: [ "https://d.ifengimg.com/w360_h203_q90_webp/x0.ifengimg.com/ucms/2024_52/99C9C40DA8CF124BB0CED9FA52570C7265BABE23_size24_w502_h282.jpg"],
            user: {
              nickname: "suchiva"
            },
            province: "hubei",
            duration: "103100",
            created_at: "2024-04-05T04:16:01.000Z"
          }
        ]
      }
    }
  end

  def detail
    render json:{
      "data": {
        id: "suchiva",
        title: "suchiva-title",
        content: "suchiva-content",
        icon: "suchiva-icon",
        province: "suchiva-hubei"
      }
    }
  end
end

